package com.feiwo.nonego.rpc.codec;

import com.feiwo.nonego.rpc.serialization.api.Serialization;
import com.feiwo.nonego.rpc.spi.loader.ExtensionLoader;

/**
 * @author feiwo 2025-08-05
 */
public interface RpcCodec {

    default Serialization getSerialization(String serializationType) {
        return ExtensionLoader.getExtension(Serialization.class, serializationType);
    }

}
